import { Layer } from "./System/Layer";
import mitt from "mitt";
import { userInput } from "../Entity/User";
import { DataOfLayer } from "../Controller/Controller";
import { Tool } from "../Entity/Tool";

export const hub = mitt<{
    changeSize: number;
    changeTool: Tool;

    drawStart: userInput;
    drawing: userInput;
    drawEnd: userInput;

    selectLayer: string[];
    updateLayer: Layer;
    deleteLayer: DataOfLayer;
    changeLayer: {
        id: string;
        data: Partial<DataOfLayer>;
    };
    createLayer: any;

    refreshBrush: undefined;
    DropColorFill: Function;
}>();
